// ignore_for_file: non_constant_identifier_names

import 'dart:convert';
import 'dart:ffi';

class UserEntity {
  String? name;
  String? picture;
  String? token;
  String? phone;
  Int? Id;
  String? type;
  List? role_ids;
  List? role_names;
  bool? password_set;

  UserEntity();

  UserEntity.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    picture = json['picture'];
    token = json['token'];
    phone = json['phone'];
    Id = json['Id'];
    type = json['type'];
    role_ids = json['role_ids'];
    role_names = json['role_names'];
    password_set = json['password_set'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> data = {};
    data['name'] = name;
    data['picture'] = picture;
    data['token'] = token;
    data['phone'] = phone;
    data['Id'] = Id;
    data['type'] = type;
    data['role_ids'] = role_ids;
    data['role_names'] = role_names;
    data['password_set'] = password_set;
    return data;
  }

  @override
  String toString() {
    return jsonEncode(this);
  }
}
